<?php
class Image_Form{
	
	private $image;
	
	public function __construct(Image $image){
		$this->image = $image;	
	}
	
	public static function makeUploader($actionUrl) {
    $text = <<<EOT
		<div id="formuploadcontainer">
		  <div id="formupload">
			  <p>Choisissez une image afin de personnaliser votre avatar :</p>
			  <form  action="{$actionUrl}" method="post" target="upload_target" enctype="multipart/form-data">
					<input type="file" size="30" name="fichier" value="" />
					<div class="submit">
						<input type="submit" name="go" value="Ok" />
						<input class="annulerUpload" type="button" value="Annuler" />
					</div>
			  </form>
			  <iframe id="upload_target" name="upload_target" src="#" style="width:0;height:0;border:0px solid #fff;">
			  </iframe>
		  </div>
		</div>
EOT;
    return $text;
  	}
	
	
}
?>